export default {
    nowViewData(state) {
        const { nowType, rightViewData, viewSrc } = state;
        if (nowType === '3D' || nowType === 'A') {
            return {
                list: rightViewData[nowType === '3D' ? 'plane' : 'solid'],
            };
        } else if (nowType === '2D') {
            return {
                list: rightViewData.dimensional,
                dimensionalConfig: rightViewData.dimensionalConfig,
            };
        } else if (nowType === 'inner') {
            return {
                viewSrc: viewSrc,
            };
        }
    },
};
